//
//  WCILocalAuthentication.h
//  MOPrefix
//
//  Created by Hyukooooh on 2024/4/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, MOLocalAuthenticationType) {
    MOLocalAuthenticationType_faceID,
    MOLocalAuthenticationType_touchID,
};
@interface WCILocalAuthentication : NSObject

/// 拉起对应生物识别技术
+ (void)localAuth:(MOLocalAuthenticationType)type isUnlock:(BOOL)isUnlock result:(void(^)(BOOL success, BOOL isAuthFail))result;
//判断生物识别的状态
+ (void)judgeBiometricsStatusComplete:(void(^)(BOOL availabel))complete;
/// 当前支持的生物识别类型
+ (MOLocalAuthenticationType)deviceSupportAuthType;
+ (NSString *)authenticationTypeName;

//提示语
+ (NSString *)vipExpiredNotice;
+ (NSString *)domainStateChangedNotice;

//开启面容ID后 保存一次当前的面容信息
+ (void)saveCurrentDomainState;
//本地设备的面容ID是否有变化
+ (void)evaluatedPolicyDomainStateChangedComplete:(void(^)(BOOL changed,BOOL shouldAlert))complete;
@end

NS_ASSUME_NONNULL_END
